package com.srdl.accountRecord.service;

import com.github.pagehelper.PageInfo;
import com.srdl.accountRecord.pojo.AccountRecord;
import com.utils.common.ServerResponse;
import org.springframework.web.bind.annotation.PathVariable;

/**
* 描述:
* author: srdl
* date: 2022-01-05
*/

public interface AccountRecordService{
    ServerResponse list(AccountRecord accountRecord);
    ServerResponse pageList(AccountRecord accountRecord);
    ServerResponse get(String id);
    ServerResponse addAccountRecord(AccountRecord accountRecord);
    ServerResponse deleteAccountRecord(String id);
    ServerResponse updateAccountRecord(AccountRecord accountRecord);
    ServerResponse getSumYearByUserId(String userId);
    ServerResponse getSumMonthByUserId(String userId);
    ServerResponse getSumDayByUserId(String userId);
    ServerResponse getThisMonthByUserId(String userId);
    ServerResponse getLastMonthByUserId(String userId);
}
